package com.css.prompt.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.css.prompt.sdk.service.AITestAgenterApiClient;

@RestController
@RequestMapping("/sdk-test")
public class SdkTestController {

    @Autowired
    private AITestAgenterApiClient aITestAgenterApiClient;

    // 生成测试脚本接口
    @PostMapping("/generate-test-script")
    public String generateTestScript(@RequestParam String engine, @RequestParam String userInput) {
        return aITestAgenterApiClient.generateTestScript(engine, userInput);
    }

    // 验证机器人接口
    @PostMapping("/validate-robot")
    public String validateRobot(@RequestParam String content) {
        return aITestAgenterApiClient.validateRobot(content);
    }
} 